﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
using BUS;
using DTO;

namespace QuanLyNhaSach.usercontrol
{
    public partial class KhachHang : UserControl
    {
        public KhachHang()
        {
            InitializeComponent();
        }

        private void KhachHang_Load(object sender, EventArgs e)
        {
            KhachHangBUS bus = new KhachHangBUS();
            List<KhachHangDTO> dsKhachHang = bus.GetAll();
            dgvKhachHang.DataSource = dsKhachHang;
        }

        private void btnThem_Click(object sender, EventArgs e)
        {
            frmThemKhachHang frm = new frmThemKhachHang();
            frm.Show();
        }
    }
}
